@import "./ApiDesignMini.css";
.api-design {
  /* max-height: calc(100% - 50px);  */
  max-height: calc(100%);
  /* position: relative; */
  /* border-radius: 3px; */
  /* margin: 5px 20px; */
  /* box-shadow: 0 0 1px 1px #cccc; */
  overflow: auto;

  /* transition: box-shadow 0.5s, 0.5s; */
}
.api-design input {
  border: none;
  margin: 0;
  padding: 5px 5px;
  min-height: unset;
  color: inherit;
  filter: grayscale(0.5);
  opacity: 0.8;
}
.api-design-open {
  /* margin: 10px 20px; */
}
.api-design-open:hover {
  /* box-shadow: 0 0 1px 1px #ccc, 5px 5px 10px #aaad; */
}
.api-request {
  position: relative;
  margin: 0px 20px;
  border-bottom: 1px solid rgb(215, 219, 218);
  margin-bottom: 10px;
}
.api-method {
  overflow: hidden;
}
.api-method select {
  opacity: 0;
  height: 100%;
}
.action {
  flex-shrink: 0;
}

.api-theme-get {
  color: #08a76a;
}

.api-theme-post {
  color: #208bc9;
}
.api-theme-put {
  color: #c28d1a;
}
.api-theme-head {
  color: #858315;
}
:root {
  --color-req-delete: 20;
}
.api-theme-delete {
  color: #a62708;
  /* color: hsla(var(--color-req-delete), 80%, 45%, 1); */
}
.alias {
  font-size: 0.9rem;
  color: #a79532;
}
.opacity-half {
  opacity: 0.5;
}
.api-design-head {
  /* padding: 10px; */
  /* padding-right: 10px; */
  /* background-color: var(--color-back-head); */
  /* border-bottom: 1px solid var(--color-border); */
  padding: 0 20px;
  padding-top: 10px;
  z-index: 20;
}

.api-design-body {
  overflow: auto;
  position: relative;
  flex-grow: 1;
  padding: 0 20px;
}

.api-design-footer {
  padding: 7px 10px;
  border-top: 1px solid #ddd7;
  /* background-color: #f5f5f5; */
}

.api-base {
  /* background-color: #f8f8f8aa; */
  padding: 5px 10px;
  /* border-bottom: 1px dashed #ddd4; */
}
.api-base input {
  width: 240px;
}

.api-param {
  border: 1px solid var(--color-border);
  border-radius: 2px;
}
.api-url {
  flex-grow: 0;
  padding: 5px 10px;
  /* background-color: #f8f8f8aa; */
}

.api-url-set {
  flex-grow: 1;
}

.method {
  flex-grow: 0;
}

.param-box {
  display: flex;
  /* flex-wrap: wrap; */
  overflow: auto;
  position: relative;
}
.api-param {
  flex-grow: 1;
  min-height: 200px;
  height: 80%;
}
/* 接口调试 */
.api-debug {
  min-height: 200px;
  flex-grow: 0;
  z-index: 1;
  overflow: auto;
  margin: 10px;
}
.api-debug .param-box {
  border: 1px solid var(--color-border);
}
.api-debug-head {
  height: 40px;
  padding-left: 0px;
  margin-top: 5px;
  margin-bottom: 1px;
}

.param-box .view {
  width: 50%;
  /* min-width: 1000px; */
}
.param-box .view:nth-child(2) {
  border-left: 1px solid var(--color-border);
}

.view-head {
  flex-grow: 0;
  flex-shrink: 0;
  padding: 4px 10px;
}

.view .textarea,
.view .api-res {
  /* background-color: #916a3007; */
  flex-grow: 1;
  overflow: auto;
}

.view .textarea:focus,
.view .api-res:focus {
  overflow: auto;
}

.view-body {
  flex-grow: 1;
  position: relative;
}

.textarea-title {
  /* background: #eee; */
  padding: 5px;
}

.loading {
  background-color: #eeea;
  color: var(--color-primary);
  fill: var(--color-primary);
  z-index: 300;
  top: 0px;
  user-select: none;
  justify-content: center;
  align-items: center;
}
